class Questionnaire{
	String qstireName
	int questionNum
	SortedSet questions

	static mapping = {
		table 'VOTING_QUESTIONNAIRE'
	}
		
	static hasMany = [questions: Question]

    static constraints = {
		qstireName(blank:false, maxSize:255)
    }

	static optionals = {
		["questionNum"]
	}

	String toString() {
		"${this.qstireName}"
	}
}
